package com.qf.lja.enity;

import java.util.Date;

public class User {
    private Integer userId ;
    /** 用户名称 */
    private String userName ;
    /** 密码 */
    private String userPass ;
    /** 手机号 */
    private String phone ;
    /** 邮件地址 */
    private String email ;
    /** 用户状态 0：冻结  1：正常 */
    private Integer userStatus ;
    /** 角色 0：卖家  1：买家 */
    private Integer role ;
    /** 性别 0：女 1：男 */
    private Integer gender ;
    /** 更新时间 */
    private Date updatedTime ;
    /** 创建时间 */
    private Date createdTime ;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public User()
    {}

    public User(String userName, String userPass) {
        this.userName = userName;
        this.userPass = userPass;
    }

    public User(Integer userId, String userName, String userPass, String phone, String email,
                Integer userStatus, Integer role, Integer gender, Date updatedTime, Date createdTime) {
        this.userId = userId;
        this.userName = userName;
        this.userPass = userPass;
        this.phone = phone;
        this.email = email;
        this.userStatus = userStatus;
        this.role = role;
        this.gender = gender;
        this.updatedTime = updatedTime;
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPass='" + userPass + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", userStatus=" + userStatus +
                ", role=" + role +
                ", gender=" + gender +
                ", updatedTime=" + updatedTime +
                ", createdTime=" + createdTime +
                '}';
    }
}